from django.urls import path
from .views import *

# urlpatterns = [
#     path('posts/', PostView.as_view()),
#     path('comments/', CommentView.as_view()),
#     path('login/', WeChatLoginView.as_view()),
#     path('identity/', IdentityView.as_view()),
#     path('getmyposts/', Getmyposts.as_view()),
#     path('search/', PostSearchView.as_view()),
#     path('hotcomments/', HotCommentView.as_view()),
#     path('commentslike/', CommentLikeView.as_view()),
#     path('comentsunlike/', CommentUnLike.as_view()),
#     path('postlike/', LikePostView.as_view()),
#     path('postunlike/',  UnlikePostView.as_view()),
#     path('getmyposts/', Getmyposts.as_view()),
#     path('hotposts/', HotPostView.as_view()),
#     path('getcategory/', GetCategoryListView.as_view()),
#     path('postimage/', PostImageUploadView.as_view()),
#     path('postlike/', GetPostLikeView.as_view()),
# ]
# Bug修复：删除重复的路径
urlpatterns = [
    path('posts/', PostView.as_view()),
    path('comments/', CommentView.as_view()),
    path('login/', WeChatLoginView.as_view()),
    path('identity/', IdentityView.as_view()),
    path('getmyposts/', Getmyposts.as_view()),
    path('search/', PostSearchView.as_view()),
    path('hotcomments/', HotCommentView.as_view()),
    path('commentslike/', CommentLikeView.as_view()),
    path('comentsunlike/', CommentUnLike.as_view()),
    path('postlike/', LikePostView.as_view()),
    path('postunlike/',  UnlikePostView.as_view()),
    path('hotposts/', HotPostView.as_view()),
    path('getcategory/', GetCategoryListView.as_view()),
    path('postimage/', PostImageUploadView.as_view()),
    path('postlike/', GetPostLikeView.as_view()),
    path('uploadavatar/', UploadStudentAvatarView.as_view()),
    path('uploadnickname/', UploadNickname.as_view()),
    path('uploadproductimg/', UploadProductImage.as_view()),
    path('getstudentinfo/', GetStudentInfo.as_view()),
    path('getproduct/', ProductDetailAPIView.as_view()),
    path('products/', ProductListAPIView.as_view()),
    path('getschools/', SchoolView.as_view()),
    path('identyinfo/', IdentyInfoView.as_view()),
    path('getfriends/', GetFriendsAPIView.as_view()),
    path('getchat/', GetChat.as_view()),
    path('report/', ReportView.as_view()),
    path('post/', GetPostsAPIView.as_view()),
    path('product/', GetProductsAPIView.as_view()),
    path('report/', ReportView.as_view()),
    path('getnotification/', GetNotice.as_view()),
    path('agreereport/', AgreeReportView.as_view()),
    path('rejectreport/', RejectReportView.as_view()),
    path('getnotifications/', SendNoticeView.as_view()),
    path('cart/', CartListView.as_view()),
    path('order/', OrderView.as_view()),
    path('addfriends/', AddFriend.as_view()),
    path('mysellproduct/',  MySellProductsAPIView.as_view()),
    path('myproduct/', MyProductsAPIView.as_view()),
    path('searchproduct/', ProductSearchView.as_view()),

]
